package question3;
//哺乳类
public abstract class EatMilk  extends Animal{
    private String milktype;

    public EatMilk() {
    }

    public EatMilk(String name, String sex, String age, String milktype) {
        super(name, sex, age);
        this.milktype = milktype;
    }

    public String getMilktype() {
        return milktype;
    }

    public void setMilktype(String milktype) {
        this.milktype = milktype;
    }
    public abstract void fedMilk();
}
